package com.cn.kabalifemerchants.ui.page.adapter;

import androidx.annotation.Nullable;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cn.kabalifemerchants.R;
import com.cn.kabalifemerchants.ui.page.bean.CaseListBean;
import com.cn.kabalifemerchants.utils.GlideUtil;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/11.
 * function:
 */
public class ServiceCaseListAdapter extends BaseQuickAdapter<CaseListBean.ResultBean.DataBean, BaseViewHolder> {

    public ServiceCaseListAdapter(int layoutResId, @Nullable List<CaseListBean.ResultBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final CaseListBean.ResultBean.DataBean item) {
        GlideUtil.ImageLoad(this.mContext, item.getCover(), helper.getView(R.id.img));
        helper
                .setText(R.id.title, item.getTitle())
        ;
    }
}
